/*
 * Copyright © 2017-2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

@import '~styles/variables.scss';

$asterisk-color: $red-02;
$success-color: $green-02;

.modal-dialog.s3-connection-modal {

  .s3-detail {
    /**
      Right now we use 'row' for individual form fields and that
      adds margin of -15px on left and right.
      Modal has a padding 10px which causes the rows to overflow and cause
      horizontal scroll for no reason.
      Hence this 5px to offset it.
    */
    padding: 5px;
    .col-form-label {
      font-weight: 500;
      font-size: 14px;
      padding-top: 4px;

      .asterisk {
        position: relative;
        top: -3px;
        left: 2px;
      }
    }

    .connection-check { margin-left: 5px; }

    .asterisk { color: $asterisk-color; }

    .action-buttons-container {
      .btn.btn-link {
        padding: 7px 5px;
      }

      .add-row-btn i { vertical-align: middle; }
    }

    .test-connection-button {
      margin-left: 5px;
    }

    .loading-indicator {
      vertical-align: middle;
      margin-left: 5px;
    }
  }
}
